package com.zhuiYun.project.api.homepagefunction.popularrecommendation.service.impl;
import com.zhuiYun.project.api.commoditydetail.entity.Commodity;
import com.zhuiYun.project.api.commoditydetail.mapper.CommodityMapper;
import com.zhuiYun.project.api.homepagefunction.popularrecommendation.service.PopularRecommendationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
 * @ClassName PopularRecommendationServiceImpl
 * @Description 人气推荐服务层
 * @Author lzk
 * @Date 2023/4/4 8:21
 **/
@Service
public class PopularRecommendationServiceImpl implements PopularRecommendationService {
    @Autowired
    CommodityMapper commodityMapper;
    /**
     *
     * @Author lzk
     * @Description 人气推荐根据商品售卖量进行排序查询
     * @date 2023/4/4 8:55
     * Return PopularRecommendation
     */
    @Override
    public List<Commodity> queryBasedOnSalesVolume() {
        List<Commodity> list = commodityMapper.selectAll();
        return list;
    }
}
